package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;
import com.aiyige.page.my.customer.model.CustomerFollowupEntity;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * 添加跟进
 * Created by xiachao
 */

public class CustomerAddFollowupRequest {
    private CustomerFollowupEntity followupEntity;

    private CustomerAddFollowupRequest(Builder builder) {
        setFollowupEntity(builder.followupEntity);
    }

    public static Builder newBuilder() {
        return new Builder();
    }



    public CustomerFollowupEntity getFollowupEntity() {
        return followupEntity;
    }

    public void setFollowupEntity(CustomerFollowupEntity followupEntity) {
        this.followupEntity = followupEntity;
    }

    public static final class Builder {
        private CustomerFollowupEntity followupEntity;

        private Builder() {
        }

        public Builder followupEntity(CustomerFollowupEntity followupEntity) {
            this.followupEntity = followupEntity;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().addCustomerFollowups(followupEntity);
        }
    }
}
